package com.github.nuggets.service;

import com.github.nuggets.model.Document;
import com.github.nuggets.model.param.DocumentSaveParams;
import com.github.nuggets.model.pojo.LoginAccountInfo;
import com.github.nuggets.model.result.PageResult;

import java.util.List;

/**
 * @description:
 * @author: wangsj
 * @date: 2022/3/22 5:44 下午
 */
public interface DocumentService {

    Boolean releaseDocument(LoginAccountInfo loginAccount, DocumentSaveParams params);

    Boolean deleteDocument(LoginAccountInfo loginAccount,Long documentId);

    Boolean updateDocument(LoginAccountInfo loginAccount,Long documentId, DocumentSaveParams params);

    Document getLoginAccountDocument(LoginAccountInfo loginAccount,Long documentId);

    PageResult<Document> listLoginAccountDocument(LoginAccountInfo loginAccount, Integer state, Integer pageIndex, Integer pageSize);
}
